package com.bjc2.proxy.cglib_proxy.complete;


import com.bjc2.proxy.cglib_proxy.TrainStation;

public class Client {

    public static void main(String[] args) {
        //创建代理工厂对象
        CompleteProxyFactory factory = new CompleteProxyFactory(new TrainStation());
        //获取代理对象
        TrainStation proxyObject = (TrainStation) factory.getProxyInstance();
        //调用代理对象中的sell方法卖票
        proxyObject.sell();
    }
}
